<!doctype html>
<%@page contentType="text/html;charset=UTF-8"%>
<jsp:directive.page import="com.cn.ccp.bean.UserBean" />
<%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="https://ajax4jsf.dev.java.net/ajax" prefix="a4j"%>
<html>
<f:view>
<f:loadBundle var="messages" basename="messages"></f:loadBundle>
<head>
<meta charset="utf-8">
<title><h:outputText value="#{messages['system_title']}" /></title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">

    <!-- styles -->
    <link href="<%=request.getContextPath()%>/css/bootstrap.css" rel="stylesheet">
    <link href="<%=request.getContextPath()%>/css/bootstrap-responsive.css" rel="stylesheet">
    <link href="<%=request.getContextPath()%>/css/custom.css" rel="stylesheet">
    <!--[if lt IE 9]>
      <script src="../../js/html5.js"></script>
    <![endif]-->
    <!-- Fav and touch icons -->
    <link rel="apple-touch-icon-precomposed" sizes="144x144" href="<%=request.getContextPath()%>/images/icon/apple-touch-icon-144-precomposed.png">
    <link rel="apple-touch-icon-precomposed" sizes="114x114" href="<%=request.getContextPath()%>/images/icon/apple-touch-icon-114-precomposed.png">
    <link rel="apple-touch-icon-precomposed" sizes="72x72" href="<%=request.getContextPath()%>/images/icon/apple-touch-icon-72-precomposed.png">
    <link rel="apple-touch-icon-precomposed" href="<%=request.getContextPath()%>/images/icon/apple-touch-icon-57-precomposed.png">
    <link rel="shortcut icon" href="<%=request.getContextPath()%>/images/icon/favicon.png">
    <%
		UserBean users = (UserBean) session.getAttribute("userBean");
			if ((users == null) || (users.getUserName().equals(""))) {
	%>
		<jsp:forward page="../../sessionInvalid.jsp" />
	<%
	}
	%>
</head>

<body class="bg-white" style="overflow-x:hidden;">
	 <h:form>
		<div class="row page-head">
			<h3 class="page-title">
				<i class="n-icon-selection  n-icon-black"></i><h:outputText value="#{messages['course_page_course_info']}"/>&nbsp;&gt;&nbsp;<b><h:outputText value="#{messages['course_page_course_swf']}" /></b>
			</h3>
			<h:commandLink value="#{messages['btn_back']}" action="main" styleClass="btn" immediate="true" style="margin-top:-42px;float:right;margin-right:20px;">
				</h:commandLink> 
		</div>
		<div style="margin-right: 20px">
			
				
				<p align="center">
				<%
				String path = request.getContextPath();
				String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
				String url = basePath + "tempfile/"+session.getAttribute("videoFileName");
				%>
					<object codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7" 
				        classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" 
				        type="application/x-oleobject" width="840" height="500"> 	
				        <param NAME="EnableContextMenu" VALUE="-1"> <!--是否启用上下文菜单--> 
						 <param name="src" value="<%=url%>"> 
						 <param name="quality" value="high" />
    					 <param name="wmode" value="opaque" />
    					 <param name="enabled" value="-1"> <!--播放器是否可人为控制--> 
    					 <param name="currentPosition" value="1"> <!--控件设置:当前位置-->
						<param name="currentMarker" value="0"> <!--控件设置:当前标记-->
						<param name="defaultFrame" value=""> <!--显示默认框架-->
						<param name="invokeURLs" value="0"> <!--脚本命令设置:是否调用URL-->
						<param name="baseURL" value=""> <!--脚本命令设置:被调用的URL-->
						<param name="stretchToFit" value="0"> <!--是否按比例伸展-->
						<param name="volume" value="50"> <!--默认声音大小0%-100%,50则为50%-->
						<param name="mute" value="0"> <!--是否静音-->
						<param name="uiMode" value="Full"> <!--播放器显示模式:Full显示全部;mini最简化;None不显示播放控制,只显示视频窗口;invisible全部不显示-->
						<param name="windowlessVideo" value="0"> <!--如果是0可以允许全屏,否则只能在窗口中查看-->
						<param name="fullScreen" value="0"> <!--开始播放是否自动全屏--> 
						<param name="bgcolor" value="#000000">
						<param name="menu" value="false">
						<param name="wmode" value="opaque">
						<param name="FlashVars" value="">
						<param name="allowScriptAccess" value="sameDomain">
						<param name="play" value="false">
					     <embed src="<%=url%>" 
					            type="application/x-shockwave-flash" 
					            pluginspage="http://www.adobe.com/go/getflashplayer" width="840" height="500"></embed> 
					</object>
					
					</p>
	        </h:form>
	 	</div>
	<script src="<%=request.getContextPath()%>/js/jquery-1.8.3.min.js"></script>
	<script src="<%=request.getContextPath()%>/js/bootstrap.js"></script>
</body>
</f:view>
</html>
